<extend name="public:base"/>

<block name="left"></block>

<block name="main">
    <div class="c_head">
        <div class="title">
            <p class="fl">当前登录账号：{:session('user_auth.username')}
            </p>
            <a href="{:url('user/msg/index')}" class="fr ring">
                <i class="iconfont">&#xe6c9;</i>
                <span class="noread_tips">{$unread|default=0}</span>
            </a>
        </div>
        <div class="user_money afff">
            <div class="top tc">
                <p class="slarge noMargin"><b>{$user->Money->money_collect + $user->Money->money_freeze + $user->Money->account_money}</b></p>
                <p onclick="showTips('账户总资产(元)=可用余额+待收总额+冻结金额')">账户总资产(元)&nbsp;<i class="iconfont">&#xe617;</i></p>
            </div>

            <div class="balance tc">
                <p onclick="showTips('可用余额 （元）= 已回收本息+推荐奖励+活动奖励')">可用余额(元)
                    <span>  {$user->Money->account_money} </span>&nbsp;<i
                            class="iconfont">&#xe617;</i></p>
                <p onclick="showTips('冻结金额(元）= 冻结中金额+提现中金额')">冻结金额(元) <span>{$user->Money->money_freeze}</span>&nbsp;<i
                        class="iconfont">&#xe617;</i></p>
            </div>

        </div>
    </div>
    <div class="second_head">
        <div class="money cl">
            <dl>
                <dt onclick="showTips('累计收益（元）= 已回款利息 + 推广返佣 + 各种奖励 ')">累计收益(元)&nbsp;<i class="iconfont">&#xe617;</i></dt>
                <dd><b class="bigger">{$total_interest|default='0.00'}</b></dd>
            </dl>
            <dl>
                <dt onclick="showTips('待收总额(元) = 待收本金（下单成功后）+待收利息')">待收总额(元)&nbsp;<i class="iconfont">&#xe617;</i></dt>
                <dd><b class="bigger">{$user->Money->money_collect}</b></dd>
            </dl>
        </div>

        <div class="menu">
            <ul>
                <li><a href="{:url('user/recharge/index')}">充值</a></li>
                <li><a href="{:url('user/withdraw/index')}">提现</a></li>

            </ul>
        </div>
    </div>
    <div class="center_link_list">
        <ul>
            <li>
                <a href="{:url('user/invested/index')}">
                    <span>我的订单</span>
                    <i class="iconfont arrow_r">&#xe611;</i>
                </a>
            </li>
            <li>
                <a href="{:url('user/money/index')}">
                    <span>资金记录</span>
                    <i class="iconfont arrow_r">&#xe611;</i>
                </a>
            </li>
        </ul>
    </div>
    <div class="center_link_list">
        <ul>
            <li>
                <a href="{:url('/user/safe/index')}">
                    <span>安全中心</span>
                    <i class="iconfont arrow_r">&#xe611;</i>
                    <i class="des fr small a999">账户安全有保障</i>
                </a>

            </li>


            <li>
                <a href="{:url('user/promote/index')}">
                    <span>邀请有礼</span>
                    <i class="iconfont arrow_r">&#xe611;</i>
                </a>
            </li>
            <li>
                <a href="{:url('index/about/index')}">
                    <span>优质服务</span>
                    <i class="iconfont arrow_r">&#xe611;</i>
                </a>
            </li>
        </ul>
    </div>
    <a href="{:url('user/passport/logout')}" class="logout_btn">退出登录</a>
    <div class="f_bar_fix"></div>
</block>

<block name="js">
    <script type="text/javascript">
        function showTips(txt) {
            layer.open({
                content: txt
                , btn: '我知道了'
            });
        }
    </script>
</block>